package com.chb.dao;

import com.chb.model.entity.BranchGoods;
import com.chb.model.entity.OutLibrayGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 陈海彬
 * @date: Created in 2023/9/28 22:56
 * @description: 入库商品
 * @modified By:
 * @version: 1.0
 */
public interface OutLibrayGoodsDao {

    /**
     * 添加入库商品
     */
    public void addOutLibrayGoods(OutLibrayGoods outLibrayGoods);

    /**
     * 通过Id查询出库详情
     *
     * @param cid 出库编号id
     */
    public List<OutLibrayGoods> selectOutLibrayGoodsByCid(Integer cid);

    /**
     * 查询分店下该商品的库存
     *
     * @param xid      主键
     * @param branchid 分店id
     * @return
     */
    public BranchGoods queryOutLibrayGoodsByXidAndBranchid(@Param("xid") Integer xid,
                                                           @Param("branchid") Integer branchid);


}